package com.platform.server.response.response.pojo;

public class ReturnData {
    public ReturnData(Object data) {
        this.code = 200;
        this.msg = "请求成功!";
        this.data = data;
    }

    public ReturnData(Integer code, String message){
        this.code = code;
        this.msg = message;
    }

    public ReturnData(Object data, Integer code, String message) {
        this.code = code;
        this.msg = message;
        this.data = data;
    }

    public ReturnData(Object data, Integer totalPage,Integer code, String message) {
        this.code = code;
        this.msg = message;
        this.data = data;
        this.totalPage = totalPage;
    }
    
    public ReturnData(Object data, Integer totalPage,Integer totalRecord,Integer code, String message) {
        this.code = code;
        this.msg = message;
        this.data = data;
        this.totalPage = totalPage;
        this.totalRecord = totalRecord;
    }
    
    public ReturnData(Object data, Integer totalPage,Integer totalRecord,Integer code, String message,Integer total) {
        this.code = code;
        this.msg = message;
        this.data = data;
        this.totalPage = totalPage;
        this.totalRecord = totalRecord;
        this.total = total;
    }
    
    public ReturnData(Object data, Integer totalPage,Integer totalRecord,Integer code, String message,Double rollIn,Double rollOut) {
        this.code = code;
        this.msg = message;
        this.data = data;
        this.totalPage = totalPage;
        this.totalRecord = totalRecord;
        this.rollIn = rollIn;
        this.rollOut = rollOut;
    }
    public ReturnData(Object data, Integer totalPage,Integer code, String message,Integer pageNo) {
        this.code = code;
        this.msg = message;
        this.data = data;
        this.totalPage = totalPage;
        this.pageNo = pageNo;
    }

    public ReturnData(){
        super();
    }

    /**
     * 返回手机端数据
     */
    private Object data;
    /**
     * 返回手机端CODE
     */
    private Integer code;
    /**
     * 返回手机端信息
     */
    private String msg;
    /**
     * 总页数
     */
    private Integer totalPage;
    /**
     * 总记录数
     */
    private Integer totalRecord;
    
    private Integer pageNo;

    //转入总额
    private Double rollIn;
    
    //转出总额
    private Double rollOut;
    
    //总额
    private Integer total;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(Integer totalRecord) {
		this.totalRecord = totalRecord;
	}

	@Override
    public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("ReturnData{");
		sb.append("data=" + data);
		if (totalPage != null) {
			sb.append(", totalPage=" + totalPage);
		}
		if (totalRecord != null) {
			sb.append(", totalRecord=" + totalRecord);
		}
		sb.append(", code=" + code);
		sb.append(", msg='" + msg + '\'');
		sb.append('}');
        return sb.toString();
    }

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Double getRollIn() {
		return rollIn;
	}

	public void setRollIn(Double rollIn) {
		this.rollIn = rollIn;
	}

	public Double getRollOut() {
		return rollOut;
	}

	public void setRollOut(Double rollOut) {
		this.rollOut = rollOut;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}	
}
